
import java.util.Date;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author TQNINH
 */
class Watch {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here        
        while(true){
            try{
                Date d = new Date();
                System.out.println(d.getHours() + ":" + d.getMinutes() + ":" + d.getSeconds());
            Thread.currentThread().sleep(1000);
            } catch(InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
